bug fixes with gui compatablilty