better parses for bind-hooks

rw global vars VERSION etc facilitate re-source in test environment