start detecting orphans. needs debugging