hack to get add patient working