really crude check for kubus-blocks, some refactoring