move packrat check to module context