fixing alot of small bugs; mapping and dump for csv should be working again