moved package sync and pacman upgrade to top