fixing small bugs (CONFIG undefined, not loading)