refactored into fileserver and domoserver