added support for client-side schema  validation