fixed package declarations for nested packages