add cube support