changed buffer imports from array to object