fixed subprocess call