adding handlers to restart analytics