fix factory to get specs to pass