add script to check access rights