Initial test app for server
fix bug