added basic printing from ptx