general_avg map generation
general improvements