allow strict access of public packages as well as private ones

- Squashed two commits into one, per your request.