implemented yos test, fixed some globals in bootstrap