introduce bootstrap and fixes some bugs.