need to check for _modules before using it