make sure agentscript is <= window size