remove pointer from config struct