fix configs class
fix caching and listener