added some new method and better test console