add some methods, move to bootstrap