move bootstrap script declarations to the foot