changed to run lua instead of commands