add console activity & refactor code