fixed custom options detection