shorten length per log entry to 500 to prevent fake log entries
refactoring