correct entitlement

* Add support for entitlement for user selected file.