added logging of subprocess commands