fixed "public-private" problems