scripts at top for pre load