fixed the migration code, added the file upload service