only verify package root if level == 0
overhaul interal representation of paths