lib re-scoping