adjust logout macro for 1.0.1c