rewrote chirp arg parsing
improved inplace buffer mechanism