support restrict entities via options
Merge pull request #4 from iantocristian/restrict-entities

support restrict entities via options