ios apphance plugin - code review