replaced sync_user with generate_report