refact config & poll