add a buffer functions file