add iprint
make more accessor functions