probably good to have this here so it can be used externally by extending packages that need this same logic.