changed singleinstance to a submodule