replaces a few prints with helpful logging