at the moment options only really work with boolean type options. we need to have options that accept an integer (e.g. segmentLength).