add debug keyword, fix bug-that-wasnt for ternary op