add event trakcing and update rails