logging and toast