add remaining imports, and setup logging.