finished bbase functionality. need to refactor now