promise handling refactor. added preliminary mite up functionality + tests