readCommand working