added method get_size to unpacker