refine phpfetch