solved bug with map writer and updated options in main