fixed the status_access_violation

move longtermscheduler to its own file; inclusion guards