make use of some new BBmisc funs to make stuff more readable