fix error in sample script and derive/derivative naming error