added some buffer inits