added block file handling routines