interface for socketIO