started implementing the server-side api