Porting ac (6/27)

Porting ac