make api more concise