maybe also add wrappers for these functions? named freeDTMs and freeBitmaps, just to not cause any confusion.