added a bugfix for when a site is updated, also the logging is better