add settings (currently not in use) and refactor to use setTimeout instead of setInterval .. not sure why I used setInterval in the first place