fixing average issues and some config items