fixing cfg stuff