setting up the middleman app for bivy