added retrieve branches feature