added cfg property to Manager
added cfg parameter to mainStart() for testability