added macstub