added endpoint to train rec server