add getCode
scene: init support save & load