add parent option and logic