error file
handle errors
cleanup error