fixing leak of tmp from eval_form
WIP: error handling changes