added preference to add handler.