automatically insert --- at start/end of config