add opts argument to fromBuffer