use writable map config
refactoring fixes