improve process detection