fixed pacman 4.1.0, needs more thorough testing