moved fs cached methods to single file