add logger
global sync
refactoring
refactoring
global sync