implement persistent application store
use the persistent application store in the api