creating pre-load script. Unfinished.