save the buffer before compiliing