updated helper script