fixed parsing issue
new get pages fxn