more fixes to subprocess call