isue#2: exclude invalid packages