metamapping: added logger and enhanced mapping method