handle private resources
Merge pull request #30 from twinbit/handle-private-resources

Handle private resources