replacing handler configs with function reference