changed optional parameters to StaticOptions struct