modifications to check isdeployed prior to looking for options; this is important for deployed applications.  We need to fix prtOptions at some point to be nicer.