moved bootstrap out to src, made it optional for tests