providing a debug mode for baseactivity and only store locations when that is enabled