refactor build state to get rid of the timing problems in inturruption
use a single build buffer for both the process and the process output