Arduino Yun Unreliable

Using an Arduino Yun for my project I had no trouble getting started changing the password and connecting to my network and using rest APIs and the bridge program I can control it but I lose connection. sometime when I turn it on I can control it a couple times then lose it sometimes it comes back sometimes turning it off then on again brings it back sometimes it doesn't. Seems to me it is losing connection to my router. The router and the yun are in the same room and have tried moving it around it just seems unpredictable when it will work and when it wont any ideas for a fix?