server now works properly