split up upload to seperate file