refine XPC helper