add sock and pid setting