use config taken from config