updated scheduler script