add in global save path, other small fixes