updated for --unsafe-perm instruction