added possibility for preprocessing before webworker transform