check packages instead of commands