changed objc periodic timer in favor of ruby loop thread