changed so that old lua script is kept if new one fails to compile