configure context proc