refactored bootstrap, made new methods