updated wasGeneratedBy hook in activity