moved app over to require and Sptofiy Preview API.