fixed calls to programExists