adding local branch replacement