started implementing file write capabilities for storing ai