modify logging
modify xhr and logging