modified the way to configure.