added support for wip min-max

This should fix #5