moving the recursive fw deps lookup to a separate object