added reconnect delay setting