support for composite @at syntax, fix duplicate gen_activity