updated addToQueue according to rest api docs