made debugdraw configurable