fix to run loader script