some commenting
needs simplelogsetter to be used by others
switch to slower but neater code
restore comment