config
properly handle prefix