work in progress, primarily on logfile management