change way of get config