updated data recorder to have proper mutex for file conditions; qevents need to needto be updated;