fixed some of sud's bugs