changed to defined types and moved sched task out of user creation