added WrongArgsException and OptimizerException