Rewrote a lot of stuff, FTP broken to some extend