cleanup and added resource to get a single branch