hmmh, fixed local=true but we need a better solution