add dynamic settings load
fix setTray() function