some cubescript hooks