fixed lots of dodgy lua, nearly working now