adds check when trainer is started