move logic to service recipe