estimateLocation function and logger
add