allow conditions on public functions
Merge pull request #13 from scialex/allow-pub

allow conditions on public functions