added experimental print functionality