Add extra logging

needs newline. Also consider writing to stderr?