package manager agnostic rewrite