wrap check to support simpleschema