added check if module exists