todo: dont write to fs in tests