fixed PBS parsing