ping methods debugged and logging statements refactored