api controller more consistent