add configuration thread to reload periodically and add DEBUG flag