implement conversion from different types of maps into bed format