add OS/release check