added ability to pass in optional partial name resolving function in order to allow customization of which partial is chosen during runtime