refine pac handler