api class syntax improvements