use new logging and assertion macro