added console reader