reduce some buffers for memory
Add Flags