Bugs fixed1

Now need to connect to server first