start implementing server API