add customizable config, metrics tracking