bud: preliminary clustering

fix #1