changed options handling for extending modules