mod_xyz modified so it does not close standard out anymore