deal with remote branches