add delta option and fix bug for skipping neg logs
preserve null value in buffer resize