add location event and change git ignore