pass some more info to scripts

Conflicts:
	shell.go
add a fallback handler