all stuff for integrating new clustering method into spaghetii