remove if(!runAsModule) - that was stupid!