verbosing and debuging
refactoring server