updated map and file input section