reorganise ftp_sync and modify addon.py accordingly