run custom code before package managers