added time stuff and ping