fix to clear schema of result when error
add TODO to do next
fix to return blank-response correctly