moving _map to module level util
coments