moves another function to autload, and fixes bootstrap setup