components for async and file save
partially working code snippet