switched sftd to pure python implementation