adapt contrib script