compiler warnings
lots of bug fixes