check routes attribute of modules