added optional bootstrap for testing