split copytotmp and runcompute steps