add toggle for debug and fast modes