updated dep
changed rights to be int instead of short