added options -l and -2 to apply logarithms before mapping