change in NSDate for lastTick
lots of work, still doesn't compile due to toRaw, fromRaw errors