only sleep when not in debug