fixes some config stuff