add flexible conf for API server