added ttf_dumper; refined code