added Scheduling param functions
fixed bug in setup