add log_past_work and session checker for error emails