bsutil+bsplot+lava functions moved to guts