rules config working