adding import functionality.  still pretty rough