make it work with lua 5.1 instead