added heatmap feature. more refactoring for htsbackend