expecting an object instead of the default array
using promises and