add iprint
catch user errors