use a larger buffer for FTP transfers
fix set_atomic for appending