switch to usage of accessFile in segmentFileStorege
Still not tested correctly