add console for debug and test use