substr no longer needed, oh -- and delete those temp files