restoring the permissions check
updated the version to reflect new development