standalone version of mix-n-map