added pseudo upload functionality - it is working, has to be refactored