updated to 2.4.6 and added option for Lua support