various bug fixes
added grid xval fix