updated find_resources & spawn