initial buffer dump code