corrected errors of remaking for new gawk api