add method to get upload token
change console.log to console.debug