don't use shebang because ccl has problem for now
add mode indicator
handle condition
fix bug