add stash, restructure data API, add new helper functions