move to less-deprecated subprocess
more subprocess conversion