added basic api client and server