add more logging statements and fix logging in BGUnmapper2