clone of lua 5.2