updated to fail gracefully when running and allow for path parameter to be specified