add append_code command