simplify subprocess calls