better error capturing
error capture, wrong types in smartPL
error capture, criteria filter