do not use state parameter
updated the code to make it easier to use a local deployment of MDP