implement basic ubox functions