update buffer handler