adds initial code for building orphan list.