use custom ResourceConfig