switch case, clear console(), rotation correction