add debugging text to register p