added host.app() function