append log if needed