kata assembly (not tested but almost finished), minor fix to bufflib