fix the module to work with localhost
fix the module to work with localhost