added code for testing location and time estimation