-- working version for tsd with pmd nano