bugfixes and bebug meassages.