use dropwizard lifecycle