moving some of the hardcoded logic from the activities into the bootsrapper.