defer creating log file until privlages are dropped
better error message
re-work buffering
minor