start bootsrap and functions