transitioned to remote script, need to capture the window size and replicate