fix argument syntax and add extension param as a variable
remove distribute requirement as it is now obsolete