working on CRM project
added connection handling patch for not to be forgotten