add code for attribute retrieval in events
update attribute download with logging, fix missing datatoken