removed non relevant kibana code