complete port of bootcamp code