improved defaultmapper with logging and black and whitelisting