added function to list flat branches