added functionality to handle printing of the staging keys when they are hidden