update apps correctly