fix deploy mojo according to new API