added support for multiple topics & separate settings file