initialize member variable in middleman impl