changed schema loading in checkSchema