make supervisor work with scheduled flag