compatible with lua5.1