fix parent id location and add option to ignore