code improvement, reduced error msgs when module not found