added endpoints for manual training and generation