cleanup middleman init