handle packages spec