started work on the location saving

yes, I know it doesn't compile