refactor tahoe-lafs into separate file