add dtypes to extract(), fix build errors