compat with lua5.2