moved print debug to streams