support for non-default branches, fixes #8