use ensure_packages from stdlib
add spec tests for plugins