fix attaching file scripts after base library