initial support for webapps (work in progress)