switching from addhandler to sethandler