even more sophisticated url patterns

fixes #41
fixes #43
related to #40
related to #39