added some primitive logging