add connect logger and fix PUT