fix to logger script