small changes buffer.c and added wip sieve with stop