fixed add/remove scheduler function
converted solution to recommended Automatic Package Restore