updated to new logging functions