fixes #89 Use Option.apply instead of Some.apply in extractOpt