added prepend-null flag