private iOS library, packing common codes