added parameters for launching spawn