lib: initial pass on minimizing binding