updating code to get and store pbp info; delete test file.