parsing and stringifying locations