adding checks for broken packages