removed bug - template was running away
added generic scheduler class for magi