common code for partner-server, recom-engine