implemented basic map, including signing etc.