add branch parsing