logging support added