adding small fixes to the FileHandler