added initial debug logging code - WIP