lua 5.1 compat