wip
adds analytics