search branch cleanup