added tendo check, for one instance of the script