log tailing fixes and improvements