updated for cubescript