slight tweak to new fetchevents function. Need to re-work config file name as well soon