enhance bad extension file validation