made plugin useable on collections