added skeleton for logging and error exceptions