fix non-oss and non_ftp