add multi app support
Merge pull request #4 from Elao/features/multi-app

add multi app support