wrap apm install to prevent errors