read configs and use it