prototype for bootstraping