added socket ping to prevent timeout