added method to automatically set custom wrappers based on the config parameters