upload thread, basic routines and checks added