add $.terminal.version + small sig refactoring