added support for loading vectors.