added print debugging for display_only flag