optional parameters are defined, fixes #21