need to add error string to err_lex and fix buffer pack