debug param added to stop logging