switch to window api