feature for socket events