implement bootstrap. most things are broken, but soon to be fixed