[feature] API fixed for pf_spec