some error checking for the rdb file