refactors *current-config* into here