ao with minor bugs