replace provider/config arguments with references to prototype