make api more fool proof

oops