sligthly do a little refactor and fix the empty cube, api would though exception problem.. still alot need to be done though