fix for logname failing