updated ptr class, passes simple test now