prevent the script for running on other version; multiple improvements