mostly functional server API, long day