some improvements for get config