apply config