some C library work
adding substitute method
adding a substituion method
fixing bug in printer