added simple check for disk space. fail immediately if out of space.