async logging (unfinished)