3ds related script stuff