add initializer for threading. see #42