added configurable cooldown
fixed configuration setup