wasn't cpying tmp/x right