master: adding some helper functions for branches