added ftp support, batch resizing and made threads daemons so that they die with the main process