move pid-get into try section