location class XML funcs working