fix mapconvert + add logging