moved directory config in startStreaming