ios reports code

starting to merge iOS reports code.