added locks for remote module to prevent multiple Save and GetAllEvents calls