catch invalid modules at include