cleanup and trying to get lua 5.1 to work