dpl judgement function and os detection