updates to script loading, and loading UI