added utiols for wrapping
logging