set of helper functions for rebase workflow