modify spec invocation