20130604 command line function work welll