make settingPath relative to rootPath
try improving pot detection accuracy
made settings as class member