add check for packages