some refactoring of app store retrieval