remove some legacy code, add logfile handler
depricating old code