bug fix and console fix.
release 0.3.1