added syncronized console class
added syncronized console class