fixes #31
fixes #30 search by permit