changed redirect_uri to config var