add logging (partial)