add missing dependency
add init function and app host templates