added (ugly) proof-of-concept support for remote branches