do not use window to store runtime