fix #1 provider constructor wiring