add session server setting
add enviroment setting & refactoring