reverted fucktarded experimental changes to cmd.exec which messed everything up.