accept single arrow argument in factory .get