gathers dependencies & routes