cleanup
cleanup
cleanup
removed 'expect' param to write_irreg