error handling for upload implemented, added some localization