redo lua sandbox and save lua code in saves