hack for unique ids, need to do something a bit more clever than that