made api consistent with other api wrappers