added additional options and fixed parent id