removed some checks that prevented optional parameters