upd; need to fix fgetc() block.