add c_ and d_ command
add some functions