added unique socket events for each file