remove deprecated use of spawn