don't instanciate possibleModules if resource == null