change boot to a express middleware