simple debug logging

Signed-off-by: mark hellewell <mark.hellewell@icloud.com>