simplify subprocess stuff