add command line parser
fix branch load sequence