init: add proper cleanup & install global & link