copy SWI missing library
stub
stub
support open as script option, to avoid spurious warning message
more fixes, not quite there