wait inside subshell, better