fix typo on config load
total config rewrite