Some changes in command manager and fixes logger