remove deprected code
add error log at schema validation