grants api and dupl. check