changed the function to take config object not multiple params, bumped version