fixed some problems with server not starting on android