purified push/pull scripts