generate field ids from path