fixes to the GPIO "toggle" feature, and fixed renaming issue.