gtp: known_command command and some more gtp refactor