using spawn_with_shell instead of spawn somewhere