added console support