minor bug fixes/added functional statistics