write_bintab changed to ouput_map