adding application state api to top-level wrapper