init logic
add test app, fix logic
fix test app