added functionality for auto scheduler