cache config. Closes #29 closes #28