playing with ptys