make it work for all non-blob types