more fixed and system command mode
replacing print and getchar with get_single and others