add console support