purified pull/push scripts