add basic functionality for typeahead
improve uploading error handling