Porting ac (7/27)

Porting ac