Porting ac (3/27)

Porting ac