quick-and-dirty datastructure framework