server callbacks on data received