change offset into constant and split some headers for swift and OC.