beautify index,init, fixed get_locations (resolved failed querys)