fix phpf, list cmd
add event handler & fix some bugs
add choice cmd