some pyret stuff