update $BASENAME in plx and set perms