always give exit 0 in detect script