added debug boolean to toggle display of areas boundaries