refine ways to specify methods to get pid