added param to enable timeouts on getch