impplemented server functionality on the android side