added filename feature to orphan adoption