add getConfig and setConfig function
configure for test