forgot to add buffer.h to core.h