creating confighandler