readded check for source that I removed in favor of check for installed packages, now does both