updated to work with contourp for posix style handling of args and automatic handling of filters