printing from remote function