fixed branch commands and some command mapping.