added lock for configuration