wrote prefill script