changed retval of server.py to always return a dict, regardless of result