got AC working, bug fixes