fileservice added, file upload fixes