make options accept two parameters, resources and uniqueIds