add ping
fix logging