add initial debug statements. should give good overview of process.