fixed some weird distributed issues and lots of subtle parameter issues
update