better scripts for initialization (i.e., doesnt crash)