fix path
simplify the process check