add autodetection, rewrite c/clive verification.