remove log/debug;make npmw singleton