add ak kernel and some tweeks