update convert_map script to make it more automated