some minor changes,
added time range logging