added logging for purge