make a log entry distinction btw automatic update and manual update + minor code clean ups