addded logging and added exception handling for oto-common code