adding packages hierarchy