no longer need to export checkSchema