remove unnecessary things from config