make a few functions for asynchronous refactored recipe app