added modes of debug