adding changes for debugging and processing alternative data