make options optional, fixes #2