fix for backwards parameters passed via CommonJS factory