optimization in use of tell functions and bug fix in file block unlink