Modified gauge error and file plugin