added timeout for get_contents_to_filename()
updated EVENTS_DIR