argument parse, prepare rewrite ichat.c