implemented status and connectionstatus callbacks