thread safe configuration

Replace class variables to instance variables in configuration for thread safety.