make ftp work & fix tests