move to our own logging function