move path_key to priv method