improve pipeline parsing