fix some issues

abstract Location model.
fix data import bugs