add statsd connection parameter to recovery and some fixes