script to prepare statsd