change events to timer, make config file to the root dir!