extension and bugfix. transform now with parameter