extend server API to allow for config to be passed in