add module() and defines() methods