added two new stdout stream write functions to system