move server info to app & refactoring