small api tweaks