small refactoring rename server to app.
small fix