changed order of methods in service provider