- fixed some bugs where it was still treating all the parameters as optional arguments