added flavors, developed attaching files api functions