put detect path at right place