Many minor fixes to ynsetup

enough changes to commit and update