completing the ref item, cleaning up logs